<%-- 
    Document   : mboards
    Created on : Nov 16, 2009, 6:50:35 AM
    Author     : fdcube
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>版块管理</title>
        <link href="<s:url value="/css/main.css"/>" rel="stylesheet" type="text/css"/>
    </head>
    <body>
        <s:div cssClass="top">
            <s:include value="/header.jsp"/>
            <s:include value="/side.jsp"/>
        </s:div>
        <div style="width:68%;margin-left:50px;">
            <s:a value="/admin/nboard.jsp">新建版块</s:a><br>

            <s:iterator value="bList" id="bi">
                <div style="width:100%;float:left">
                <s:property value="bname"/>
                <s:a action="AAction!DBoard?bid=%{bid}&returnUrl=AAction!SBoards.action" namespace="/admin">删除版块</s:a>
                <s:a action="AAction!EBoard?bid=%{bid}" namespace="/admin">编辑版块</s:a>
                当前版主：
                <s:iterator value="#bi.moderinfos">
                    <s:property value="userinfo.uname"/>
                    <s:a action="AAction!DMUser?mid=%{mid}&returnUrl=AAction!SBoards.action" namespace="/admin">删除版主</s:a>
                </s:iterator>
                <s:form action="AAction!MUser?bid=%{bid}&returnUrl=AAction!SBoards.action" namespace="/admin">
                    <s:textfield name="uid" label="用户id"/>
                    <s:submit align="center" value="设置版主"/>
                </s:form>
                </div>
            </s:iterator>
        </div>
    </body>
</html>
